<template>
  <div class="course">
    <ke-header />
    <ke-opencourse-banner />
    <div class="main">
      <div class="ke-tab">
        <router-link :to="'/course/overview'" tag="span">课程概述</router-link>
        <router-link :to="'/course/catalogue'" tag="span">目录</router-link>
        <router-link :to="'/course/comment'" tag="span">评论</router-link>
      </div>
      <router-view />
      <div class="right">
        <ke-course-teacher-info />
      </div>
    </div>
    <ke-footer />
  </div>
</template>

<script>
export default {
  name: 'course',
  components: {
    keHeader: () => import('../components/ke-header'),
    keOpencourseBanner: () => import('../components/ke-course-banner'),
    keTab: () => import('../components/ke-tab'),
    keFooter: () => import('../components/ke-footer'),
    keCourseTeacherInfo: () => import('../components/ke-course-teacher-info')
  }
}
</script>

<style lang="stylus" scoped>
.course {
  overflow: hidden;

  .main {
    position: relative;
    width: 1200px;
    margin: 20px auto 20px;
    padding: 0 20px;
    box-sizing: border-box;
    height 371px

    .ke-tab {
      overflow: hidden;

      span {
        border-bottom: 5px solid #fff;
        line-height: 50px;
        padding: 0 40px;
        font-size: 16px;
        float: left;
        cursor: pointer;

        &.active {
          border-bottom-color: rgb(35, 184, 255);
        }
      }
    }

    .right {
      position: absolute;
      top: 0px;
      right: 0px;
      height: 371px;
      width: 343px;
      background: #eeeeee;
      box-sizing: border-box;
    }
  }
}
</style>
